/*
 * Copyright (c) 2006 - 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

/**
 * <p>Project: app2022 - Exception5
 * <p>Powered by webrx On 2022-01-14 15:09:34
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Exception5 {
    public static void main(String[] args) {
        String f = "user.txt";
        try (var fw = new FileWriter(f); var fr = new BufferedReader(new FileReader(f))) {
            fw.write("hello world 中文1\r\n");
            fw.flush();
            System.out.println(fr.readLine());
        } catch (IOException e) {
            e.printStackTrace();
        }

    }

}
